<template>
	<view>
		<view class="table">
			<view class="tr header">
				<view class="name w">
					商品名称
				</view>
				<view class="pic w">
					商品图片
				</view>
				<view class="price w">
					成本价
				</view>
				<view class="num w">
					销售数量
				</view>
				<view class="profit w">
					利润
				</view>
				<view class="time w">
					时间
				</view>
			</view>
			<view class="tr body" v-for="(item, index) in 10" :key="index">
				<view class="name w">
					商品-1
				</view>
				<view class="pic w">
					<image class="img" src="@/static/commodity.png" mode=""></image>
				</view>
				<view class="price w">
					￥15
				</view>
				<view class="num w">
					100
				</view>
				<view class="profit w">
					￥1500
				</view>
				<view class="time w">
					2024-02-02 12:00:00
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.table {
		margin-top: 20rpx;
		background-color: #FFF;
		padding: 0rpx 20rpx 0;
		.tr {
			display: flex;
			align-items: center;
			justify-content: space-between;
			.img {
				width: 72rpx;
				height: 72rpx;
			}
			.w {
				width: 13.6%;
				// text-align: center;
			}
		}
		.header {
			padding: 20rpx 0;
			border-bottom: 1rpx solid #F4F5F7;
		}
		.body {
			padding: 10rpx 0;
			border-bottom: 1rpx solid #F4F5F7;
		}
		.body:last-child {
			border-bottom: 0;
		}
	}
</style>
<style>
	page {
		background-color: #F4F5F7;
	}
</style>